Fix calculation of edge input window size in case the real window is too small.
authorChristoph Reiter <reiter.christoph@gmail.com>
Sat, 20 Jun 2015 11:27:20 +0000 (13:27 +0200)
committerEmmanuele Bassi <ebassi@gnome.org>
Mon, 22 Jun 2015 13:22:50 +0000 (14:22 +0100)
commit3c9cca596fac6c5e72f7d6147eeb78f16be549dd
tree96f530ac04882b9f4cff26fc2c01f00a7a52913e
parent97e728580cba385c7d8e193b7119f67ab507d511
Fix calculation of edge input window size in case the real window is too small.

This error resulted in warnings like
"pixman_region32_init_rect: Invalid rectangle passed"

In case the window is smaller than handle_size * 2 the resulting
edge window got a negative size. Prevent that by limiting the
handle size to half the respective edge length. This also
prevents the corner windows from overlapping in case the window
is too small.
gtk/gtkwindow.c